<form class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">考生:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">考题:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rexamquestion_ids" data-rule="required" data-source="rexam/question/index" data-field="title" data-multiple="true" class="form-control selectpage" name="row[rexamquestion_ids]" type="text" value="{$row.rexamquestion_ids|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Answerjson')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <dl class="fieldlist" data-template="answeroptionstpl" data-name="row[answerjson]">
                <dd>
                    <ins style="width:50px">题号</ins>
                    <ins style="width:200px">回答</ins>
<!--                    <ins style="width:50px">结果</ins>-->
                </dd>
                <dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>
                <textarea name="row[answerjson]" class="form-control hide" cols="30" rows="5">{$row.answerjson|htmlentities}</textarea>
            </dl>
            <script id="answeroptionstpl" type="text/html">
                <dd class="form-inline">
                    <ins style="width:500px"><%=row.qid%></ins>
                    <ins style="width:200px"><%=row.ans%></ins>
<!--                    <ins style="width:50px"><%=row.res?"正确":"错误"%></ins>-->
                </dd>
            </script>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Question_count')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-question_count" class="form-control" name="row[question_count]" type="number" value="{$row.question_count|htmlentities}">
        </div>
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Right_count')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-right_count" class="form-control" name="row[right_count]" type="number" value="{$row.right_count|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Points')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-points" class="form-control" name="row[points]" type="number" value="{$row.points|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">问卷类型:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-type_id" data-rule="required" data-source="rexam/subject/index" class="form-control selectpage" name="row[type_id]" type="text" value="{$row.type_id|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">日期:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-day" class="form-control" name="row[day]" type="text" value="{$row.day|htmlentities}">
        </div>
    </div>

<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Begintime')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-begintime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[begintime]" type="text" value="{:$row.begintime?datetime($row.begintime):''}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Overtime')}:</label>-->
<!--        <div class="col-xs-12 col-sm-8">-->
<!--            <input id="c-overtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[overtime]" type="text" value="{:$row.overtime?datetime($row.overtime):''}">-->
<!--        </div>-->
<!--    </div>-->
</form>

<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('问卷评估')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否评估')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="isshowList" item="vo"}
                <label for="row[is_show]-{$key}"><input id="row[is_show]-{$key}" name="row[is_show]" type="radio" value="{$key}" {in name="key" value="$row.is_show"}checked{/in} /> {$vo}</label>
                {/foreach}
            </div>

        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
